import React from 'react'
import classnames from 'classnames'
import BackLeftIcon from '@/assets/icons/BackLeftIcon';
import styles from './index.module.less'

export default ({ collapsed, onClick, style = {} }) => (
  <div className={classnames({ [styles['collapse-icon']]: true, [styles.active]: collapsed })} style={style} onClick={onClick}>
    <BackLeftIcon />
  </div>
)